package com.common.DAO;

import java.util.List;

import com.common.entity.Comment;

public interface ICommentDAO extends IBaseDAO {

	/**
	 * List 
	 * @return list de tous les commentaires de l'application
	 */
	public List <Comment> list();
	
	/**
	 * Method used to list comment on a path
	 * @return
	 */
	public List <Comment> listPathComment(int path_id);
	
	/**
	 * Method used to list comment on application
	 * @return
	 */
	public List <Comment> listApplicationComment();
	
	/**
	 * Method used to list comment on covoitureur
	 * @return
	 */
	public List <Comment> listCovoitureurComment(int covoit_id);
	
	/**
	 * Method used to add a comment
	 * @param co
	 */
	public void addComment(Comment co);
	
}
